﻿@model PlmTestLogViewModel
@{
    Layout = null;
    ViewBag.Title = "检测日志添加";
}
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
@{Html.EnableClientValidation();}
@using (Html.BeginForm("TestLogAddHandle", "PlmTestLog", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAjaxDone);", @class = "pageForm required-validate" }))
{
@*<form method="post" action="/PersonnelLog/PlmTestLog/TestLogAddHandle" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">*@
    @Html.HiddenFor(m => m.OperationType, new { Value = @ViewBag.OperationType })
    @Html.HiddenFor(model => model.ThePlmTestlog.Tl_ID)
    <input id="AssistID" name="AssistID" value="@ViewBag.AssisId" type="hidden"/>
    <div class="pageContent">
        <div class="pageFormContent sortDrag" layouth="60">
            <dl style="display:none">
                <dt>操作人：</dt>
                <dd>
                 @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_UserID, new { @readonly = "true" })
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_UserName, new { @readonly = "true" })
                </dd>
            </dl>
            <dl style="display:none">
                <dt>操作日期：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_UpdateTime, new { @readonly = "true", Value = @DateTime.Now.ToString("yyyy-MM-dd") })
                </dd>
            </dl>
            <dl>
                <dt>标段：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_ContractNumber, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(m => m.ThePlmTestlog.Tl_ContractNumber)
                   @* @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_ContractNumber, new { @class = "required" })*@
                </dd>
            </dl>
            <dl>
                <dt>编号：</dt>
                <dd>
                     @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_Number, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(m => m.ThePlmTestlog.Tl_Number)
                    @*@Html.TextBoxFor(m => m.ThePlmTestlog.Tl_Number, new { @class = "required" })*@
                </dd>
            </dl>

            <dl>
                <dt>记录日期：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_RecordDate, new { @class = "date required", Value = Model.ThePlmTestlog.Tl_RecordDate.ToString("yyyy-MM-dd") })
                </dd>
            </dl>
            <dl>
                <dt>记录人：</dt>
                <dd>
                     @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_RecordUser, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(m => m.ThePlmTestlog.Tl_RecordUser)
                   @* @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_RecordUser, new { @class = "required" })*@
                </dd>
            </dl>

            <dl>
                <dt>专业职位：</dt>
                <dd> 
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_ProfessionalPosition, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(m => m.ThePlmTestlog.Tl_ProfessionalPosition)
                   @* @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_ProfessionalPosition, new { @class = "required" })*@
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>检测单位：</dt>
                <dd>
                     @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_TestUnit, new Dictionary<string, object> { { "class", "data-val-required input02" }})
                    @Html.ValidationMessageFor(m => m.ThePlmTestlog.Tl_TestUnit)
                  @*  @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_TestUnit, new { @class = "required", size = 60 })*@
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>检测范围：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_TestRange, new { size = 60 })
                </dd>
            </dl>
            <dl>
                <dt>审核人：</dt>
                <dd>
                @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_AuditMan)
            </dl>

            <dl>
                <dt>天气情况：</dt>
                <dd>
                    @Html.TextBoxFor(m => m.ThePlmTestlog.Tl_Weather)</dd>
            </dl>

            <dl class="nowrap">
                <dt>主要试验检测工作内容：</dt>
                <dd>@Html.TextAreaFor(m => m.ThePlmTestlog.Tl_TestContent, new { cols = "80", rows = "5" })
                </dd>
            </dl>
            <dl class="nowrap">
                <dt>问题及处理情况：</dt>
                <dd>
                    @Html.TextAreaFor(m => m.ThePlmTestlog.Tl_ProblemsDispose, new { cols = "80", rows = "5" })
                </dd>
            </dl>

            <dl>
                <dt>附件：</dt>
                <dd>
                   <a href='/Common/UploaderFile/Uploader/?id=ZDFileID' width="710" height="460" rel="rel_WorkFlow_WorksMeasure_Attach" mask="true" target="dialog" title="附件管理">
                      <img src="/Content/themes/default/images/fj.gif" alt="查看附件" id='ZDFileID' 
                       uploaderoption="{MoudleID:@ViewBag.MoudleID,'ToSelectIDs':[@ViewBag.FileIds],'ToDeleteIDs':[@ViewBag.DeleteIds],BizDeleteURL:'/PersonnelLog/Base/Delete/',BizSaveUrl:'/PersonnelLog/Base/BatchAdd/',BizType:'TestLog_Rules',BizID:'@ViewBag.AssisId','dirWhere':'@ViewBag.DirWhere'}" />
                       </a>
                </dd>
            </dl>
        </div>
        <div class="formBar">
            <ul>
                @if (ViewBag.OperationType != "view")
                {
                    <li>
                        <button type="submit" class="btn btn-sm">保存</button>
                    </li>
                }

                <li>
                    <button type="button" class="close btn btn-default btn-sm">取消</button>
                </li>
            </ul>
        </div>

    </div>
@*</form>*@
}
